#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.mapBox {
  width: 100%;
  height: 100vh;
  background: #edacac;
}

#map-container {
  width: 100%;
  height: 100%; /* 继承父容器高度 */
  border: 1px solid #ccc;
  margin: 20px 0;
  border-radius: 8px;
}

.mapStyle {
  width: 100%;
  height: 100%;
}

#root {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.mapBox {
  height: 100vh !important;
  width: 100vw !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.map-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

.mapStyle {
  width: 100%;
  height: 100%;
}

/* 加载状态样式 */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
}

/* 错误消息样式 */
.error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 0, 0.1);
  color: red;
  padding: 20px;
  border-radius: 4px;
  z-index: 1000;
  text-align: center;
}

/* 添加错误提示样式 */
.error {
  color: red;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  background-color: #ffeeee;
  border: 1px solid #ffcccc;
  border-radius: 4px;
  margin: 20px;
}